package com.abc.proxy.statics;

public class StudentProxy implements IStudentDao{

   private IStudentDao studentDao;

   public StudentProxy(IStudentDao studentDao){
      this.studentDao = studentDao;
   }

   @Override
   public void save(){
      System.out.println("事务开启前");
      studentDao.save();
      System.out.println("事务开启后");
   }

   @Override
   public void insert() {

   }

}
